package com.qingsong.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author qingsong
 */
@Schema(description = "学校添加DTO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SchoolInsertDTO implements Serializable {

    @NotEmpty(message = "学校名称不能为空!")
    @Schema(description = "学校名称")
    private String title;

    @NotEmpty(message = "学院名称不能为空!")
    @Schema(description = "学院名称")
    private String college;

    @NotEmpty(message = "专业名称不能为空!")
    private String major;

    @NotEmpty(message = "班级名称不能为空!")
    private String clazz;

    @NotEmpty(message = "地址不能为空!")
    private String address;
    private String info;

}
